package com.mokio.mapper;

import com.mokio.entity.ProductInfo;
import com.mokio.entity.ProductInfoExample;
import com.mokio.vo.ProductInfoVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductInfoMapper {

    /**
     * 多条件组合查询
     * @param vo
     * @return
     */
    List<ProductInfo> selectByVo(ProductInfoVo vo);

    /**
     * 批量删除
     * @param ids
     */
    void batchDel(Integer[] ids);


    int countByExample(ProductInfoExample example);

    int deleteByExample(ProductInfoExample example);

    int deleteByPrimaryKey(Integer pId);

    int insert(ProductInfo record);

    int insertSelective(ProductInfo record);

    List<ProductInfo> selectByExample(ProductInfoExample example);

    ProductInfo selectByPrimaryKey(Integer pId);

    int updateByExampleSelective(@Param("record") ProductInfo record, @Param("example") ProductInfoExample example);

    int updateByExample(@Param("record") ProductInfo record, @Param("example") ProductInfoExample example);

    int updateByPrimaryKeySelective(ProductInfo record);

    int updateByPrimaryKey(ProductInfo record);


}